<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group(['namespace'=>'App\Http\Controllers\Api\User'],function(){

    Route::get('app/apk_download','OthersController@apk_download');

});


Route::group(['namespace'=>'App\Http\Controllers\Api\Auth','prefix'=>'api'],function(){

    Route::any('auth/get_token','AuthController@index');
    Route::post('auth/send_sms','AuthController@send_sms');

});

Route::group(['namespace'=>'App\Http\Controllers\Api\User','prefix'=>'api','middleware'=>'WebAuth'],function(){
    Route::post('user/get_face_id','UserController@getFaceId');
    Route::post('user/up_identify_result','UserController@upFaceIdentifyResult');
    Route::post('user/agree_service_protocol','UserController@service_protoc');  //同意用户协议
    Route::post('user/bind_phone','UserController@bind_phone');  //绑定手机
    Route::post('user/user_profile','UserController@getUserProfile');  //获取用户信息
    Route::post('user/set_weight_height','UserController@setHeightOrWeight');  //设置
    Route::post('user/upload_imgs','UserController@upload_img');  //设置

});


